{{include "home/header.html"}}
<main>
    <p class="weizhi">您现在的位置是：<a href="/">首页</a>&nbsp;>&nbsp;<a href="/list/{{.cateinfo.Id}}">{{.cateinfo.Catname}}</a>
    <article>

        <!--new_blog 最新文章 begin-->
        <div class="new_blog">
            <ul class="blogs">

                {{range $k,$v := .newslist}}
                    <li>
                        {{if not $v.Thumb}}
                        {{else}}
                            <a href="/show/{{$v.Id}}">
                                <i><img src="{{$v.Thumb}}" alt="{{$v.Title}}">
                                </i>
                                <h2>{{$v.Title}}</h2>
                            </a>
                        {{end}}
                        <p class="blog_smalltext">
                            {{$v.Description}}</p>
                        <p class="blog_info">
                            <span>{{$v.CreateTime.Format "Y-m-d"}}</span><span>{{$v.Author}}</span><span><a href="/list/{{$.cateinfo.Id}}" target="_blank">{{$.cateinfo.Catname}}</a></span><span>{{$v.Views}}</span><span>{{$v.Zan}}</span>
                        </p>
                    </li>
                {{end}}
            </ul>
        </div>
        <!--new_blog 最新文章 end-->
        <div class="pagelist">
            <a title="Total record">&nbsp;
                <b>{{.page.Total}}</b>
            </a>
            {{if ne .page.PreviousPage .page.PageNum}}
                <a href="/list/{{$.cateinfo.Id}}/{{.page.PreviousPage}}">上一页</a>
            {{end}}
            {{range $k,$v:= .page.Pages}}
                {{if eq $v $.page.PageNum}}
                    <b>{{$v}}</b>
                {{else}}
                    <a href="/list/{{$.cateinfo.Id}}/{{$v}}">{{$v}}</a>
                {{end}}
            {{end}}
            {{if .page.Total}}
                {{if ne .page.NextPage .page.PageNum}}
                    <a href="/list/{{$.cateinfo.Id}}/{{.page.NextPage}}">下一页</a>
                {{end}}
                <a href="/list/{{$.cateinfo.Id}}/{{.page.PageCount}}">尾页</a>
            {{end}}
        </div>
    </article>
    <!--article end-->

{{/*    <aside>*/}}
{{/*        <div class="tuijian">*/}}
{{/*            <h2 class="aside_title">站长推荐</h2>*/}}
{{/*            <ul>*/}}
{{/*                <li><a href="" target="_blank"><i><img src="static/picture/1bd69aea6264425e1fc1a73cdd6289d9.jpg"*/}}
{{/*                                                             alt="想折腾也得看运气不是，我是不是太倒霉了？！"></i>*/}}
{{/*                        <p>想折腾也得看运气不是，我是不是太倒霉了？！</p>*/}}
{{/*                    </a></li>*/}}
{{/*            </ul>*/}}
{{/*        </div>*/}}
{{/*        <div class="love">*/}}
{{/*            <h2 class="aside_title">猜你喜欢</h2>*/}}

{{/*        </div>*/}}
{{/*    </aside>*/}}
    <!--aside end-->
</main>
{{include "home/footer.html"}}
